Completed
Push — master ( 7b5fbf...d41ae8 )
by greg
03:18
created

lowercase.js ➔ lowercase   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
nc 2
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
nop 1
1
/**
2
 * Handlebars helper, lowercase the str
3
 */
4
export default function lowercase(str) {
5
  if(typeof str === 'undefined' || str === null){
6
    return '';
7
  } else {
8
    return str.toLowerCase();
9
  }
10
}